
global.imports = global.imports || {}
global.imports.fs =  require('fs')
global.imports.path = require('path')

require('./temp/low')
var path = require('path')




var low = global.low

var Low = low.Low;
var JSONFile = low.JSONFile


const file =  path.join(__dirname , 'temp/db.json')
const adapter = new JSONFile(file)
const db = new Low(adapter)



//important


db.data = { posts : []}
db.data.posts
  .push({ id: 1, title: 'lowdb is awesome' })

// Save to file
db.write()